package com.asj.house.service;

import com.asj.house.entity.HouseRoom;
import com.asj.house.returns.RespEntity;
import com.asj.house.vo.result.CityRoomResult;
import com.asj.house.vo.result.RoomListResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 房屋信息表 服务类
 * </p>
 *
 * @author asj
 * @since 2021-03-04
 */
public interface HouseRoomService extends IService<HouseRoom> {
    /**
     * 房源信息列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    RespEntity<RoomListResult> listHouseRoom(Integer pageNum, Integer pageSize);

    /**
     * 搜索房源信息
     * @param pageNum
     * @param pageSize
     * @param content
     * @return
     */
    RespEntity<RoomListResult> searchHouseRoom(Integer pageNum, Integer pageSize, String content);

    /**
     * 房源分类
     * @param pageNum
     * @param pageSize
     * @param type
     * @return
     */
    RespEntity<RoomListResult> typeHouseRoom(Integer pageNum, Integer pageSize, Integer type);

    /**
     * 房源城市分布
     * @param city
     * @return
     */
    RespEntity<CityRoomResult> listHouseCity(String city);

    /**
     * 同城房源信息
     * @param roomId
     * @return
     */
    RespEntity<List<HouseRoom>> sameCityRoom(Integer roomId);

    /**
     * 按照时间搜索房源
     * @param begin
     * @param end
     * @param num
     * @return
     */
    RespEntity<RoomListResult> searchByDate(String begin, String end, Integer num);
}
